package org.op.wword;

import javax.swing.JOptionPane;

import org.op.FrameView;
import org.op.service.config.ConfigurationService;
import org.op.util.MessageController;

public class AliasAddDialogViewImpl implements AliasAddDialogView {
	
	private MessageController messageController;
	private String promptMessage;
	private ConfigurationService configService;
	private FrameView frameView;
	
	public AliasAddDialogViewImpl() {
	}
	
	public String openAndGet() {
		String title = messageController.getLabel("alias.add");
		String message = messageController.getMessage("add.alias.message");
        String str = JOptionPane.showInputDialog(null, message, title, 1);
        return str;
	}

	public String getPromptMessage() {
		return promptMessage;
	}

	public void setPromptMessage(String promptMessage) {
		this.promptMessage = promptMessage;
	}

	public MessageController getMessageController() {
		return messageController;
	}

	public void setMessageController(MessageController messageController) {
		this.messageController = messageController;
	}

	public ConfigurationService getConfigService() {
		return configService;
	}

	public void setConfigService(ConfigurationService configService) {
		this.configService = configService;
	}

	public FrameView getFrameView() {
		return frameView;
	}

	public void setFrameView(FrameView frameView) {
		this.frameView = frameView;
	}
	

}
